﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="phiengiaoban.aspx.cs" Inherits="Giaobanapp.phiengiaoban" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            height: 20px;
        }
        .style3
        {
            width: 78px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
        <table cellspacing="1" class="style1">
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
                        Text="PHIÊN GIAO BAN" Font-Size="Large"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label2" runat="server" Text="Ngày giao ban:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtdate" runat="server" Width="250px" Height="25px"></asp:TextBox>
                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdate" Format="dd/MM/yyyy">
                    </asp:CalendarExtender>
                    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </asp:ToolkitScriptManager>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label3" runat="server" Text="Nội dung trở ngại"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtnoidung" runat="server" Height="69px" TextMode="MultiLine" 
                        Width="450px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label ID="Label4" runat="server" Text="Loại trở ngại:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlLoaiTroNgai" runat="server" Height="26px" 
                        Width="250px" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label ID="Label6" runat="server" Text="Địa điểm:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtdiadiem" runat="server" Height="25px" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label7" runat="server" Text="Giờ phát sinh"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtgiops" runat="server" Height="25px" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label8" runat="server" Text="Giờ khôi phục"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtgiokp" runat="server" Height="25px" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label9" runat="server" Text="Nguyên nhân:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtnguyennhan" runat="server" Height="58px" Width="450px" 
                        TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" style="width: 150px">
                    <asp:Label ID="Label10" runat="server" Text="Biện pháp xử lý:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtbienphap" runat="server" Height="58px" TextMode="MultiLine" 
                        Width="450px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label ID="Label11" runat="server" Text="Tồn tại:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddltontai" runat="server" Height="26px" 
                        Width="250px" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    <asp:Label ID="Label12" runat="server" Text="Đơn vị"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddldonvi" runat="server" Height="26px" 
                        Width="250px" >
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnadd" runat="server" onclick="Button1_Click" Text="Thêm" 
                        Width="105px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblthongbao" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="Label5" runat="server" Font-Size="Large" ForeColor="Red" 
                        Text="BẢNG THỐNG KÊ"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" style="margin-left: 40px">
                    <asp:GridView ID="gdata" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="4" onrowcancelingedit="gdata_RowCancelingEdit" 
                        onrowcommand="gdata_RowCommand" onrowdeleting="gdata_RowDeleting1" 
                        onrowediting="gdata_RowEditing1" onrowdatabound="gdata_RowDataBound" 
                        onselectedindexchanged="gdata_SelectedIndexChanged" DataKeyNames="id" >
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="TT" />
                            <asp:BoundField DataField="ngaygb" HeaderText="Ngày giao ban" />
                            <asp:BoundField DataField="tentrongai" HeaderText="Nội dung trở ngại" />
                            <asp:BoundField DataField="loaitrongai" HeaderText="Loại trở ngại" />
                            <asp:BoundField DataField="diadiem" HeaderText="Địa điểm" />
                            <asp:BoundField DataField="giophatsinh" HeaderText="Giờ phát sinh" />
                            <asp:BoundField DataField="giokhoiphuc" HeaderText="Giờ khôi phục" />
                            <asp:BoundField DataField="nguyennhan" HeaderText="Nguyên nhân" />
                            <asp:BoundField DataField="bienphapxuly" HeaderText="Biện pháp xử lý" />
                            <asp:BoundField DataField="tontai" HeaderText="Tồn tại" />
                            <asp:BoundField DataField="donvi" HeaderText="Đơn vị" />
                            <asp:CommandField SelectText="Sửa" ShowSelectButton="True" />
                            <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#BFDE97" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
   
</asp:Content>
